import request from '@/axios'
import type { ListParams, Response } from '@/api/api'

export interface Row {
  id?: number
  no: string
  pay_type: string
  order_status: string
  is_salesman: string
  store_name: string
  total_num: string
  total_category: number
  channel_text: number
  channel: number
}
// 分账列表
export const getListApi = (data: ListParams): Promise<Response<Row>> => {
  return request.post({ url: '/finance/store/list', data })
}
// 结算(支持批量)
export const getPassApi = (params): Promise<Response<Row>> => {
  return request.get({ url: '/finance/store/pass', params })
}
